package org.example;


import org.example.config.WebConfig;
import org.example.config.WebSocketConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

@MapperScan("org.example.mapper")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@Import({WebSocketConfig.class, WebConfig.class})
//@EnableAsync
public class MvcSpringApplication {
    public static void main(String[] args) {
//        SpringApplication app = new SpringApplication(MvcSpringApplication.class);
        // 设置Spring MVC和WebFlux不同的端口
        SpringApplication.run(MvcSpringApplication.class, args);
    }
}
